using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace RugbyClubWpf.Models
{
    /// <summary>
    /// Represents a coach in the rugby club.
    /// </summary>
    public class Coach
    {
        /// <summary>
        /// Gets or sets the unique identifier for the coach.
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int CoachId { get; set; }

        /// <summary>
        /// Gets or sets the name of the coach.
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the email of the coach.
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// Gets or sets the phone number of the coach.
        /// </summary>
        public string PhoneNumber { get; set; }

        /// <summary>
        /// Gets or sets the user ID associated with the coach.
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// Gets or sets the user associated with the coach.
        /// </summary>
        [ForeignKey("UserId")]
        public User User { get; set; }
    }
}
